package com.okyai.cms.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.okyai.common.annotation.Excel;
import com.okyai.common.core.domain.BaseEntity;

/**
 * 文章对象 cms_content
 * 
 * @author okyai
 * @date 2020-12-03
 */
public class CmsContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 文章管理的应用id */
    @Excel(name = "文章管理的应用id")
    private Long appId;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String contentTitle;

    /** 所属栏目 */
    @Excel(name = "所属栏目")
    private Long contentCategoryId;

    /** 文章跳转链接地址 */
    @Excel(name = "文章跳转链接地址")
    private String contentUrl;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String contentDetails;

    /** 关键字 */
    @Excel(name = "关键字")
    private String contentKeyword;

    /** 描述 */
    @Excel(name = "描述")
    private String contentDescription;

    /** 文章缩略图 */
    @Excel(name = "文章缩略图")
    private String contentImg;

    /** 自定义顺序 */
    @Excel(name = "自定义顺序")
    private Long contentSort;

    /** 发布时间 */
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contentDatetime;

    /** 文章来源 */
    @Excel(name = "文章来源")
    private String contentSource;

    /** 文章作者 */
    @Excel(name = "文章作者")
    private String contentAuthor;

    /** 是否显示 */
    @Excel(name = "是否显示")
    private String contentDisplay;

    /** 文章类型 */
    @Excel(name = "文章类型")
    private String contentType;

    /** 点击次数 */
    @Excel(name = "点击次数")
    private Long contentHit;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAppId(Long appId) 
    {
        this.appId = appId;
    }

    public Long getAppId() 
    {
        return appId;
    }
    public void setContentTitle(String contentTitle) 
    {
        this.contentTitle = contentTitle;
    }

    public String getContentTitle() 
    {
        return contentTitle;
    }
    public void setContentCategoryId(Long contentCategoryId) 
    {
        this.contentCategoryId = contentCategoryId;
    }

    public Long getContentCategoryId() 
    {
        return contentCategoryId;
    }
    public void setContentUrl(String contentUrl) 
    {
        this.contentUrl = contentUrl;
    }

    public String getContentUrl() 
    {
        return contentUrl;
    }
    public void setContentDetails(String contentDetails) 
    {
        this.contentDetails = contentDetails;
    }

    public String getContentDetails() 
    {
        return contentDetails;
    }
    public void setContentKeyword(String contentKeyword) 
    {
        this.contentKeyword = contentKeyword;
    }

    public String getContentKeyword() 
    {
        return contentKeyword;
    }
    public void setContentDescription(String contentDescription) 
    {
        this.contentDescription = contentDescription;
    }

    public String getContentDescription() 
    {
        return contentDescription;
    }
    public void setContentImg(String contentImg) 
    {
        this.contentImg = contentImg;
    }

    public String getContentImg() 
    {
        return contentImg;
    }
    public void setContentSort(Long contentSort) 
    {
        this.contentSort = contentSort;
    }

    public Long getContentSort() 
    {
        return contentSort;
    }
    public void setContentDatetime(Date contentDatetime) 
    {
        this.contentDatetime = contentDatetime;
    }

    public Date getContentDatetime() 
    {
        return contentDatetime;
    }
    public void setContentSource(String contentSource) 
    {
        this.contentSource = contentSource;
    }

    public String getContentSource() 
    {
        return contentSource;
    }
    public void setContentAuthor(String contentAuthor) 
    {
        this.contentAuthor = contentAuthor;
    }

    public String getContentAuthor() 
    {
        return contentAuthor;
    }
    public void setContentDisplay(String contentDisplay) 
    {
        this.contentDisplay = contentDisplay;
    }

    public String getContentDisplay() 
    {
        return contentDisplay;
    }
    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }
    public void setContentHit(Long contentHit) 
    {
        this.contentHit = contentHit;
    }

    public Long getContentHit() 
    {
        return contentHit;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appId", getAppId())
            .append("contentTitle", getContentTitle())
            .append("contentCategoryId", getContentCategoryId())
            .append("contentUrl", getContentUrl())
            .append("contentDetails", getContentDetails())
            .append("contentKeyword", getContentKeyword())
            .append("contentDescription", getContentDescription())
            .append("contentImg", getContentImg())
            .append("contentSort", getContentSort())
            .append("contentDatetime", getContentDatetime())
            .append("contentSource", getContentSource())
            .append("contentAuthor", getContentAuthor())
            .append("contentDisplay", getContentDisplay())
            .append("contentType", getContentType())
            .append("contentHit", getContentHit())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
